package me.zhengjie.modules.weixin.message.mass;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class MassMessage {
    /**
     * touser : ["OPENID1","OPENID2"]
     * mpnews : {"media_id":"123dsdajkasd231jhksad"}
     * msgtype : mpnews
     * send_ignore_reprint : 0
     */
    @JsonProperty("mpnews")
    private MpnewsDTO mpnews;
    @JsonProperty("msgtype")
    private String msgtype;
    @JsonProperty("send_ignore_reprint")
    private int sendIgnoreReprint;
    @JsonProperty("touser")
    private List<String> touser;

    public MpnewsDTO getMpnews() {
        return mpnews;
    }

    public void setMpnews(MpnewsDTO mpnews) {
        this.mpnews = mpnews;
    }

    public String getMsgtype() {
        return msgtype;
    }

    public void setMsgtype(String msgtype) {
        this.msgtype = msgtype;
    }

    public int getSendIgnoreReprint() {
        return sendIgnoreReprint;
    }

    public void setSendIgnoreReprint(int sendIgnoreReprint) {
        this.sendIgnoreReprint = sendIgnoreReprint;
    }

    public List<String> getTouser() {
        return touser;
    }

    public void setTouser(List<String> touser) {
        this.touser = touser;
    }

    public static class MpnewsDTO {
        /**
         * media_id : 123dsdajkasd231jhksad
         */

        @JsonProperty("media_id")
        private String mediaId;

        public String getMediaId() {
            return mediaId;
        }

        public void setMediaId(String mediaId) {
            this.mediaId = mediaId;
        }
    }
}
